package com.Test.HomeWork;

import org.apache.commons.io.FilenameUtils;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * 1、 实现大文件高效的复制（考虑使用缓冲流）
 *
 *
 */
public class work1 {
    public static void main(String[] args) {
       // BufferedInputStream bufferedInputStream=new BufferedInputStream("");
        String Filename = FilenameUtils.getName("D:\\java\\java-jar包\\commons-io-2.11.0\\NOTICE.txt");
        System.out.println(Filename);


    }
    public static void copyDirectory(File srcDir, File destDir) throws IOException {
       // FilenameUtils.
        File file=new File("D:\\java\\java-jar包");
        BufferedInputStream bufferedInputStream=new BufferedInputStream(new FileInputStream(file));


    }

}
